import _http from '@/utils/http'

export default {
  updatePwd(params, loading) {
    return _http('post', {
      url: "/ums/user/updatePwd/web",
      apiName: '登陆后修改密码-web'
    }, params, loading)
  },

  confirmPassword(params, loading) {
    return _http('post', {
      url: "/ums/user/confirmPassword",
      apiName: '登陆后确认密码-公司用户'
    }, params, loading)
  },

  updatePhone(params, loading) {
    return _http('post', {
      url: "/ums/user/updatePhone/web",
      apiName: '登陆后修改手机号码'
    }, params, loading)
  },

  getMsgCode(params, loading) {
    return _http('post', {
      url: "/ums/sms/getSmsForModifyPhone/web",
      apiName: '登陆后-修改手机号-获取短信验证码'
    }, params, loading)
  },

  searchConsumer(params, loading) {
    return _http('post', {
      url: "/ums/app/shop/searchConsumer",
      apiName: '我的下级代理商列表-分页'
    }, params, loading)
  },

  incomediscount(params, loading) {
    return _http('post', {
      url: "/ums/shop/set/goods/incomediscount",
      apiName: '留存比例设置'
    }, params, loading)
  },

  shopInfo(params, loading) {
    return _http('post', {
      url: "/ums/shop/info/detail",
      apiName: '我的商铺信息 - 店铺资料'
    }, params, loading)
  },

  shopModify(params, loading, headers) {
    return _http("post", {
      url: "/ums/shop/modify",
      apiName: "修改商铺信息",
    }, params, loading, headers);
  },

  companyQuitH5(params, loading, headers) {
    return _http("post", {
      url: "/ums/w/company/quit/h5",
      apiName: "用户登录-企业平台退出-H5",
    }, params, loading, headers);
  },
}



